package com.beans;

import java.io.Serializable;
import java.util.List;

import javax.ejb.EJB;

import com.services.CinemaService;

import model.Cinema;

public class CinemasBean implements Serializable
{
	
	@EJB CinemaService service;
	
	private List<Cinema> cinemas;

	public CinemasBean() 
	{
		
	}

	public List<Cinema> getCinemas() 
	{
		this.cinemas = service.getAllCinemas();
		return cinemas;
	}

	public void setCinemas(List<Cinema> cinemas) {
		this.cinemas = cinemas;
	}
	
	
}
